package com.kt.appinfo.apinfo.servlet;

import com.kt.appinfo.apinfo.dao.AppInfoMapper;
import com.kt.appinfo.apinfo.pojo.AppInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class AppinfoServletimpl implements AppinfoServlet {
    @Resource
    private AppInfoMapper appInfoMapper;


    @Override
    public List<AppInfo> getAppInfoList(String querySoftwareName, Integer queryStatus, Integer queryCategoryLevel1, Integer queryCategoryLevel2, Integer queryCategoryLevel3, Integer queryFlatformId, Integer devId, Integer currentPageNo, Integer pageSize) throws Exception {
        return appInfoMapper.getAppInfoList(querySoftwareName, 1, queryCategoryLevel1, queryCategoryLevel2,
                queryCategoryLevel3, queryFlatformId, null, (currentPageNo-1)*pageSize, pageSize);
    }

    @Override
    public int getAppinfoCount(String querysoftwareName, Integer queryqueryStatus, Integer queryCategoryLeve11, Integer queryCategoryLeve12, Integer queryCategoryLeve13, Integer queryflatformId, Integer devId) throws Exception {
        return 0;
    }
}

